package com.trafficsys.modules.owner.service.impl;

import com.trafficsys.modules.entity.Ticket;
import com.trafficsys.modules.owner.dao.TicketRecordDao;
import com.trafficsys.modules.owner.service.TicketRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class TicketRecordImpl implements TicketRecordService {
    @Autowired
    TicketRecordDao ticketRecordDao;

    /**
     * 根据行驶证的carNo车牌号查询罚单信息
     * @param carNo
     * @return
     */
    @Override
    public List<Ticket> queryTicket(String carNo) {

      return ticketRecordDao.queryTicketByCarNo(carNo);
    }
}

